//
//  CollectionViewCell.h
//  liwo
//
//  Created by liuwenyang on 14-9-22.
//  Copyright (c) 2014年 liuwenyang. All rights reserved.
//

#import <UIKit/UIKit.h>

@class CollectionViewCell;
@protocol CollectionViewItemDelegate <NSObject>

@optional

- (void)clickElement:(CollectionViewCell *)collectionViewCell element:(id)element ItemData:(id)itemData;

@end

@interface CollectionViewCell : UICollectionViewCell


@property (nonatomic, assign) id<CollectionViewItemDelegate> itemDelegate;
@property (nonatomic, strong) id model;

@property (nonatomic, strong) NSIndexPath *cellIndex;
- (void)setValue:(id)data;
+(CGSize)sizeForItem:(id)data indexPath:(NSIndexPath *)indexPath;


@end
